package com.adinnet.core.config;

import com.adinnet.core.exception.GlobalExceptionHandler;
import lombok.extern.slf4j.Slf4j;
import org.aspectj.lang.annotation.Aspect;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;


/**
 * Created by jinhe
 */
@Slf4j
@Aspect
@Configuration
public class WebExceptionConfig {
    @Bean
    GlobalExceptionHandler getGlodbalExceptionHandler() {
        return new GlobalExceptionHandler();
    }

}
